import request from '@/utils/request'

// 查询人才招考信息列表
export function listRecuit(query) {
  return request({
    url: '/system/recuit/list',
    method: 'get',
    params: query
  })
}

// 查询人才招考信息详细
export function getRecuit(id) {
  return request({
    url: '/system/recuit/' + id,
    method: 'get'
  })
}

// 新增人才招考信息
export function addRecuit(data) {
  return request({
    url: '/system/recuit',
    method: 'post',
    data: data
  })
}

// 修改人才招考信息
export function updateRecuit(data) {
  return request({
    url: '/system/recuit',
    method: 'put',
    data: data
  })
}

// 删除人才招考信息
export function delRecuit(id) {
  return request({
    url: '/system/recuit/' + id,
    method: 'delete'
  })
}


// 考试管理列表
export function enrollList(query) {
  return request({
    url: '/system/enroll/list',
    method: 'get',
    params: query
  })
}


// 考试管理列表
export function enrollInfoList(id) {
  return request({
    url: `/system/enroll/list/${id}`,
    method: 'get'
  })
}

// 审核
export function updateEnroll(data) {
  return request({
    url: `/system/enroll`,
    method: 'put',
    data: data
  })
}

// 排版座位
export function rowSeat(data) {
  return request({
    url: `/system/enrollExam/rowSeat`,
    method: 'post',
    data: data
  })
}

// 确定添加排版座位
export function addSeat(data) {
  return request({
    url: `/system/enrollExam/adds`,
    method: 'post',
    data: data
  })
}

// 确定添加排版座位
export function userCount(id) {
  return request({
    url: `/system/recuit/exam/${id}`,
    method: 'get'
  })
}

// 确定添加排版座位
export function enrollExamList(query) {
  return request({
    url: `/system/enrollExam/list`,
    method: 'get',
    params: query
  })
}

// 考试报名状态统计接口
export function statistician(id) {
  return request({
    url: `/system/enroll/statistician/${id}`,
    method: 'get'
  })
}

// 考生信息详情
export function studentInfo(id) {
  return request({
    url: `/system/enroll/${id}`,
    method: 'get'
  })
}